package chapter_11_facade.classic;

import chapter_11_facade.classic.subsystem.ClassA;
import chapter_11_facade.classic.subsystem.ClassB;
import chapter_11_facade.classic.subsystem.ClassC;

/**
 * @author yaochenglong
 * @date 2017/10/19
 */
public class Facade {
    //被委托的对象
    private ClassA a;
    private ClassB b;
    private ClassC c;

    //提供给外部的访问方法
    public void methodA(){
        a.doA();
    }

    public void methodB(){
        b.doB();
    }

    public void methodC(){
        c.doC();
    }
}
